package com.dmai.capacity.platform.user.mapper;

import com.dmai.capacity.platform.user.model.SysInstitution;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 机构表
 *
 * @author
 * @email
 * @date 2024-05-22 13:36:20
 */
@Mapper
public interface SysInstitutionDao {

    int save(SysInstitution sysInstitution);

    int update(SysInstitution sysInstitution);

    int updateAuth(SysInstitution sysInstitution);

    int delete(Long id);

    SysInstitution findById(Long id);

    SysInstitution findByName(String name);

    SysInstitution findByUscc(String uscc);

    SysInstitution findByAdminAccount(String adminAccount);

    String findMaxCode(@Param("examVenue") String examVenue);

    int count(Map<String, Object> params);

    List<SysInstitution> findAll(Map<String, Object> params);

}
